package com.zoro.barn.business.service.pp.business.project.dao;


import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.business.service.pp.business.project.entity.BarnProjectUser;

import java.util.Collection;
import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnProjectUserMapper {

    int hasUser(String projectId, String userId);

    void insertBatch(Collection<BarnProjectUser> data);

    List<BarnProjectUser> query(BarnProjectUser projectUser);

    void deleteUser(String projectId, String userId);
}
